/* ==========================================================================
   CC-GEN SIGN IN - MODERN AUTHENTICATION STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #EB001B 0%, #B80016 100%);
    --primary-gradient-hover: linear-gradient(135deg, #C40017 0%, #C40017 100%);
    --primary-color: #EB001B;
    --accent-orange: #B80016;
    --accent-blue: #475569;
    
    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --bg-dark: #0F172A;
    --bg-dark-surface: #1E293B;
    --bg-dark-subtle: #334155;
    
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --text-light-muted: #94A3B8;

    --border-color: #E2E8F0;
    --border-dark: #334155;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 10px 30px -5px rgba(235, 0, 27, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-main: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-leaving {
    opacity: 0 !important;
    transform: translateY(-8px) scale(0.995) !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input {
    font-family: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==========================================================================
   TOP FAQ ANNOUNCEMENT BAR
   ========================================================================== */
.top-faq-bar {
    background: linear-gradient(90deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: #F8FAFC;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 101;
}

.top-faq-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.top-faq-badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-faq-link {
    color: #FFC2C6;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.top-faq-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
    transform: translateX(2px);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--text-heading);
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-heading);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.desktop-auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-auth {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-auth .btn-link,
.mobile-nav-auth .btn-primary {
    width: 100%;
    text-align: center;
    padding: 12px;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
    padding: 9px 18px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-link:hover {
    background: var(--bg-subtle);
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    padding: 8px;
    color: var(--text-heading);
    cursor: pointer;
}

/* ==========================================================================
   AUTH PAGE SPLIT SECTION
   ========================================================================== */
.auth-page-section {
    padding: 64px 0 80px;
    flex-grow: 1;
    background: radial-gradient(circle at 10% 20%, rgba(235, 0, 27, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(235, 0, 27, 0.06) 0%, transparent 45%);
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
}

/* Left Brand Showcase Column */
.auth-showcase-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(235, 0, 27, 0.08);
    color: var(--primary-color);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
}

.auth-showcase-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.auth-showcase-desc {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
}

.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
}

.auth-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(71, 85, 105, 0.12);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-showcase-img {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-height: 220px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px;
    display: block;
}

/* Right Auth Card */
.auth-card-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.auth-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-card-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.auth-card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Groups */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-left-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary-color);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(235, 0, 27, 0.1);
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--text-heading);
}

.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-body);
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.forgot-password-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Inline Auth Error Banner */
.auth-form-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(235, 0, 27, 0.07);
    border: 1px solid rgba(235, 0, 27, 0.3);
    color: #C40017;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.5;
    margin: 14px 0 4px;
}

[data-theme="dark"] .auth-form-error {
    background: rgba(235, 0, 27, 0.14);
    border-color: rgba(235, 0, 27, 0.45);
    color: #FFC2C6;
}

/* Password Reset Box (revealed by "Forgot password?") */
.auth-reset-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 14px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-reset-box p {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.5;
}

.auth-reset-box .form-input {
    width: 100%;
}

.reset-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reset-status {
    font-size: 0.82rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Submit Button */
.btn-auth-submit {
    background: var(--primary-gradient);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

.btn-auth-submit:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* Social Login Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-social {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.btn-social:hover {
    background: var(--bg-subtle);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.auth-bottom-switch {
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-bottom-switch a {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-bottom-switch a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 64px 0 32px;
    margin-top: auto;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: #FFFFFF;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    padding: 2px;
}

.footer-desc {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 360px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-dark-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-muted);
    border: 1px solid var(--border-dark);
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-2px);
}

.social-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

.footer-col h5 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-list a {
    color: var(--text-light-muted);
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-light-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .desktop-auth-actions, .auth-actions {
        display: none;
    }

    .mobile-nav-auth {
        display: flex;
    }

    .main-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 24px;
        box-shadow: var(--shadow-xl);
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
        z-index: 999;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-showcase-title {
        font-size: 2.1rem;
    }

    .auth-showcase-img {
        max-height: 160px;
        max-width: 320px;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 12px auto 0 auto;
        display: block;
        padding: 6px;
    }

    .auth-card-wrapper {
        padding: 28px 20px;
    }

    .social-auth-grid {
        grid-template-columns: 1fr;
    }

    .brand-wrapper {
        font-size: 1.12rem;
        gap: 8px;
    }

    .brand-logo-img {
        height: 24px;
        width: auto;
    }

    .brand-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .footer-logo-img {
        height: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================================================
   THEME TOGGLE BUTTON & DARK MODE OVERRIDES
   ========================================================================== */
.theme-toggle-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--bg-surface);
    color: var(--accent-orange);
    transform: scale(1.05);
}

[data-theme="dark"] {
    --bg-page: #090D16;
    --bg-surface: #131B2E;
    --bg-subtle: #1E293B;
    --text-heading: #F8FAFC;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: #243048;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .site-header {
    background: rgba(19, 27, 46, 0.92);
    border-bottom-color: #243048;
}

[data-theme="dark"] .btn-link {
    color: #CBD5E1;
}

[data-theme="dark"] .btn-link:hover {
    background: #1E293B;
    color: #FFFFFF;
}

[data-theme="dark"] .form-input {
    background: #090D16;
    color: #F8FAFC;
    border-color: #334155;
}

[data-theme="dark"] .form-input:focus {
    background: #131B2E;
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-social {
    background: #1E293B;
    color: #F8FAFC;
    border-color: #334155;
}

[data-theme="dark"] .btn-social:hover {
    background: #243048;
    border-color: #475569;
}